package com.starbaba.stat.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.starbaba.comment.model.EntityVO;

public class IllegalStaticsModel  implements Serializable{
	
	private static final long serialVersionUID = -3408432007501579573L;
	
	private String startTime;
	
	private String endTime;
	
	private static List<EntityVO> provinceList;
	
	private static List<EntityVO> userList;
	
	private static List<EntityVO> platformList;
	
	public IllegalStaticsModel() {
		initProvinceList();
	}
	
	private void initProvinceList() {
		provinceList = new ArrayList<EntityVO>(40);
		provinceList.add(new EntityVO("yue", "粤"));
		provinceList.add(new EntityVO("jing", "京"));
		provinceList.add(new EntityVO("zhe", "浙"));
		provinceList.add(new EntityVO("hu", "沪"));
		provinceList.add(new EntityVO("e", "鄂"));
		provinceList.add(new EntityVO("liao", "辽"));
		provinceList.add(new EntityVO("su", "苏"));
		provinceList.add(new EntityVO("qing", "青"));
		provinceList.add(new EntityVO("chuan", "川"));
		provinceList.add(new EntityVO("wan", "皖"));
		provinceList.add(new EntityVO("yu", "渝"));
		provinceList.add(new EntityVO("min", "闽"));
		provinceList.add(new EntityVO("gui", "贵"));
		provinceList.add(new EntityVO("jin", "津"));
		provinceList.add(new EntityVO("gan", "甘"));
		provinceList.add(new EntityVO("qiong", "琼"));
		provinceList.add(new EntityVO("yu_henan", "豫"));
		provinceList.add(new EntityVO("shan_xi", "陕"));
		provinceList.add(new EntityVO("xiang", "湘"));
		provinceList.add(new EntityVO("ji", "冀"));
		provinceList.add(new EntityVO("hei", "黑"));
		provinceList.add(new EntityVO("gan", "赣"));
		provinceList.add(new EntityVO("ji_lin", "吉"));
		provinceList.add(new EntityVO("meng", "蒙"));
		provinceList.add(new EntityVO("ning", "宁"));
		provinceList.add(new EntityVO("jin_shanxi", "晋"));
		provinceList.add(new EntityVO("lu", "鲁"));
		provinceList.add(new EntityVO("xin", "新"));
		provinceList.add(new EntityVO("zang", "藏"));
		provinceList.add(new EntityVO("yun", "云"));
		provinceList.add(new EntityVO("guilin", "桂"));
		
		userList = new ArrayList<EntityVO>();
		userList.add(new EntityVO("1", "新用户"));
		userList.add(new EntityVO("2", "旧用户"));
		
		platformList = new ArrayList<EntityVO>();
		platformList.add(new EntityVO("android", "android"));
		platformList.add(new EntityVO("ios", "ios"));
	}
	
	public static List<EntityVO> getUserList() {
		return userList;
	}

	public static void setUserList(List<EntityVO> userList) {
		IllegalStaticsModel.userList = userList;
	}

	public static List<EntityVO> getPlatformList() {
		return platformList;
	}

	public static void setPlatformList(List<EntityVO> platformList) {
		IllegalStaticsModel.platformList = platformList;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	public static List<EntityVO> getProvinceList() {
		return provinceList;
	}
	
	public static String getProvinceValueByKey(String key) {
		for (EntityVO entityVO : provinceList) {
			if (entityVO.getKey().equals(key)) {
				return entityVO.getValue();
			}
		}
		return null;
	}

	public static void setProvinceList(List<EntityVO> provinceList) {
		IllegalStaticsModel.provinceList = provinceList;
	}
}
